package com.hmall.gateway.filter;

//@Component
//public class MyGlobalFilter implements GlobalFilter, Ordered {
//    @Override
//    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
//        // 获取请求头中的token元素
//        ServerHttpRequest request = exchange.getRequest();
//        HttpHeaders headers = request.getHeaders();
//        String token = headers.getFirst("Authorization");
//
//        return null;
//    }
//
//    @Override
//    public int getOrder() {
//        return 0;
//    }
//}
